<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="../github-markdown.css" />
    <link rel="stylesheet" href="../custom.css" />
    <script src="../custom.js"></script>
    <title>Input & Keyboard</title>
  </head>
  <body class="markdown-body">
    <h2>Disable Application Shortcuts</h2>
    <p>
      Some built-in applications can take up global shortcuts and cause
      conflicts, e.g. AMD Control Panel takes up
      <code>Ctrl + Shift + L</code> shortcuts, NVDIA graphics programs, etc.
      They should be disabled.
    </p>
    <h2>Remap Modifier Keys</h2>
    <details>
      <summary>Use MacOS-style ...</summary>
      <br />
      <p>
        This schema is conducive to improving typing and triggering shortcuts,
        and reducing muscle strain.
      </p>
      <ul>
        <li>
          New order like <code>Win</code> <code>Alt</code>
          <code>Ctrl</code>
        </li>
        <li>Swap <code>CapsLock</code> and <code>Esc</code></li>
      </ul>
      <p>Enable: (RunAs Admin)</p>
      <pre><code>reg add "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /t REG_BINARY /d 00000000000000000600000001003A003A0001001D0038005BE01D0038005BE000000000 /f</code></pre>
      <p>Disable: (RunAs Admin)</p>
      <pre><code>reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /f</code></pre>
      <p>Log out and log in to take effect.</p>
      <p>
        If you have additional requirements, you can use <code>sharpkeys</code>
      </p>
    </details>
    <h2><a href="ms-settings:easeofaccess-keyboard">System Settings</a></h2>
    <h3>Underline Access Keys</h3>
    <p>
      Press Alt key to trigger button or menu item, without mouse operation.
    </p>
    <h3>Sticky keys</h3>
    <p>Press <code>shift</code> key 5 times to activate.</p>
    <p>
      Optimize: press modifier key, once to activate, twice to lock, three times
      to simulate down and up
    </p>
    <pre><code>reg add "HKCU\Control Panel\Accessibility\StickyKeys" /v Flags /t REG_SZ /d 190 /f</code></pre>
  </body>
</html>
